<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="UTF-8">
      <title>js入门</title>
   </head>
   <body>
      <script>
         // alert("hello world")
         document.write("hello world")
         document.write('<h1>我是大标签</h1>')
         // 控制台输出
         console.log("我是控制台输出")
         // 输入语句
         // prompt("请输入你的名字")

         let age = 10
         console.log(typeof age)
         document.write(`我今年${age}岁了`)
         console.log(parseInt('14px'))
         console.log(parseInt('14.222px'))
         console.log(parseFloat('14.222px'))
      </script>
   </body>
</html>